package cn.jtfadmin.base.doc;

import cn.jtfadmin.base.doc.swagger.SwaggerConfig;
import cn.jtfadmin.base.lang.config.module.DefaultModuleInfoDTO;
import cn.jtfadmin.base.lang.config.module.ModuleInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * api文档
 */
@Configuration
@Controller
@RequestMapping
@Import({SwaggerConfig.class})
public class BaseDocAutoConfiguration {

    @Bean
    public ModuleInfo baseDocMoudleInfo(){
        return new DefaultModuleInfoDTO("baseDoc", "在线接口文档", "在线接口文档", getClass().getPackage().getName());
    }


}
